<?php

load_helper( 'html' );

if( isset($title) )
	echo "<h1>".texo::translate($title)."</h1>";

if( isset( $out ) )
	echo (strpos($out,'<p') === false && strpos($out,'<ul') === false && strpos($out,'<form') === false && strpos($out,'<table') === false)
		? "<p>{$out}</p>"
		: $out;

if( !isset( $links ) )		return;
elseif( is_string( $links ) ) { echo "<hr/>".$links; return; }
elseif( !is_array($links) ) return;

?>
<hr/>

<ul class="out-links"><?php

foreach( $links as $i ):
	if(!isset($i['text'])) $i['text'] = $i['title'];
	?><li><?=html_a($i)?></li><?php
endforeach;

?></ul>

